define({ "api": [
  {
    "group": "test",
    "name": "common_list",
    "description": "<p>店铺评论列表  返回的count评论条数 spotnum 点赞数</p>",
    "type": "post",
    "url": "/api/shop/common_list",
    "title": "店铺评论列表",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_id",
            "description": "<p>店铺id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "page",
            "description": "<p>当前页数</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "pagenum",
            "description": "<p>一页多少条</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "user_id",
            "description": "<p>用户id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576547801\",\"data\":[{\"nickName\":\"23423\",\"avatarUrl\":\"23dfd23423454\",\"content\":\"dfdfd\",\"star\":3,\"comment_img\":\"dfdfd\"}]}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "test",
    "name": "common_spot",
    "description": "<p>店铺评论用户点赞</p>",
    "type": "post",
    "url": "/api/shop/common_spot",
    "title": "店铺评论用户点赞",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "comment_id",
            "description": "<p>评论id 为店铺评论列表返回的id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "user_id",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "status",
            "description": "<p>可选 不传为点赞 ，传1 为取消点赞</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576547801\",\"data\":[{\"nickName\":\"23423\",\"avatarUrl\":\"23dfd23423454\",\"content\":\"dfdfd\",\"star\":3,\"comment_img\":\"dfdfd\"}]}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "test",
    "name": "content_detail",
    "description": "<p>文章详情接口</p>",
    "type": "post",
    "url": "/api/shop/content_detail",
    "title": "文章详情",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "id",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1577328043\",\"data\":[{\"id\":15,\"name\":\"shop_comment22\",\"createtime\":1577323207}]}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "test",
    "name": "content_list",
    "description": "<p>问题与帮助列表</p>",
    "type": "post",
    "url": "/api/shop/content_list",
    "title": "问题与帮助列表",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "content_type",
            "description": "<p>关于我们  传1 问题与帮助 传2 关于我们</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1577328043\",\"data\":[{\"id\":15,\"name\":\"shop_comment22\",\"createtime\":1577323207}]}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "test",
    "name": "shop_comment",
    "type": "post",
    "url": "/api/shop/shop_comment",
    "title": "进行店铺评论",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_id",
            "description": "<p>店铺id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "user_id",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "content",
            "description": "<p>评论内容</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "comment_img",
            "description": "<p>评论图片 [ &quot;1.jpg&quot;, &quot;2.jpg&quot;, &quot;3.jpg&quot; ]</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "star",
            "description": "<p>评论星级</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576139162\",}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "test",
    "name": "shop_detail",
    "type": "post",
    "url": "/api/shop/shop_detail",
    "title": "店铺详情",
    "description": "<p>返回 comment 评论数  type_comment 评论种类 status 0 收藏成功 1取消收藏 show_star 店铺评级数 （前台所有用户评论的总分/评论次数 + 后台管理的总分）\\200 一星160分 总分1000 后台占800</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "id",
            "description": "<p>店铺id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "user_id",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "longitude",
            "description": "<p>经度</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "latitude",
            "description": "<p>维度</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576632085\",\"data\":{\"detail\":{\"id\":1,\"shop_name\":null,\"shop_mobile\":\"13240746617\",\"business_hour\":\"周一至周日 8点-21点\",\"description\":null,\"shop_user\":\"王二\",\"shop_image\":\"122.jpg\",\"shop_image2\":\"2.jpg\",\"shop_image3\":\"3.jpg\",\"persion_consume\":70,\"star_class\":null,\"tags\":null,\"address\":\"山东\",\"province\":null,\"city\":null,\"area\":null,\"longitude\":\"120.02584362955\",\"latitude\":\"36.305678777723\",\"shop_phone\":null,\"hb_shop_image\":\"[\\\"122.jpg\\\",\\\"2.jpg\\\",\\\"3.jpg\\\"]\"},\"comment\":2,\"type_comment\":[{\"shop_comment_type_num\":3,\"name\":\"技术不错\"},{\"shop_comment_type_num\":4,\"name\":\"服务热情\"}]}}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "test",
    "name": "shop_edit",
    "description": "<p>店铺编辑</p>",
    "type": "post",
    "url": "/api/shop/shop_edit",
    "title": "店铺编辑",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_id",
            "description": "<p>店铺id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_name",
            "description": "<p>店铺名字</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "hb_shop_image",
            "description": "<p>店铺图片格式为 三张图片[ &quot;1.jpg&quot;, &quot;2.jpg&quot;, &quot;3.jpg&quot; ]</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "star_class",
            "description": "<p>店铺星级</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "tags",
            "description": "<p>店铺标签</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "description",
            "description": "<p>店铺描述</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "longitude",
            "description": "<p>店铺经度</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "latitude",
            "description": "<p>店铺纬度</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_phone",
            "description": "<p>店铺电话</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "address",
            "description": "<p>住址  会根据腾讯住址得到经纬度</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576389735\",\"data\":{\"shop_id\":1}}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "test",
    "name": "shop_index",
    "type": "post",
    "url": "/api/shop/index",
    "title": "店铺列表，检索接口",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_type",
            "description": "<p>维修站1,2,检查站2</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "star_class",
            "description": "<p>星级</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "distance_type",
            "description": "<p>距离类别传1，2，3表示为1：500m 以内 2：500-10000密码 3:1000米以上</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "page",
            "description": "<p>当前页数</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "pagenum",
            "description": "<p>一页多少条</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_name",
            "description": "<p>可选店铺id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "longitude",
            "description": "<p>可选经度</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "latitude",
            "description": "<p>可选维度</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "ordertype",
            "description": "<p>可选传 distance_n按照距离降序排序 distance_u:按照距离升序排序star_n:按照星级降序排序  star_u:按照星级升序序排序默认id降序排序</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576136284\",\"data\":[{\"id\":1,\"shop_name\":\"测试\",\"shop_user\":\"王二\",\"shop_image\":\"\\/assets\\/img\\/qrcode.png\",\"persion_consume\":70,\"star_class\":4,\"tags\":\"维修,修车\",\"description\":\"是的发生的\",\"address\":\"山东\",\"province\":\"山东\",\"city\":\"安徽省\\/芜湖市\",\"area\":\"333\",\"longitude\":\"120.400368\",\"latitude\":\"36.108348\",\"shop_phone\":\"53233333\",\"distance\":334},{\"id\":2,\"shop_name\":\"测试\",\"shop_user\":\"23\",\"shop_image\":\"\\/uploads\\/20191212\\/cdecfee0440353aa24c7b18d100d59ca.jpg\",\"persion_consume\":3,\"star_class\":3,\"tags\":\"2\",\"description\":\"3\",\"address\":\"d\",\"province\":\"山东\",\"city\":\"\",\"area\":\"3\",\"longitude\":\"2\",\"latitude\":\"3\",\"shop_phone\":\"53233333\",\"distance\":12598179}]}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "test",
    "name": "shop_index_detail",
    "type": "post",
    "url": "/api/shop/shop_index_detail",
    "title": "首页点击出详情",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "id",
            "description": "<p>店铺id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "longitude",
            "description": "<p>经度</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "latitude",
            "description": "<p>维度</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1575969212\",\"data\":[{\"id\":1,\"shop_name\":\"测试\",\"shop_user\":\"王二\",\"shop_image\":\"\\/assets\\/img\\/qrcode.png\",\"persion_consume\":70,\"star_class\":4,\"tags\":\"维修,修车\",\"description\":\"是的发生的\",\"address\":\"山东\",\"province\":\"山东\",\"city\":\"安徽省\\/芜湖市\",\"area\":\"333\",\"longitude\":\"3434\",\"latitude\":\"22\",\"shop_phone\":\"53233333\"}]}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "test",
    "name": "shop_login",
    "description": "<p>可用 手机号 13240746617 密码 123456 测试登录 返回shop_id 用于获取店铺详情</p>",
    "type": "post",
    "url": "/api/shop/shop_login",
    "title": "店铺登录",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_mobile",
            "description": "<p>店铺负责人手机号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_password",
            "description": "<p>店铺密码</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576389735\",\"data\":{\"shop_id\":1}}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Shop.php",
    "groupTitle": "店铺接口"
  },
  {
    "group": "wechatuser",
    "name": "code",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "openid",
            "description": "<p>微信openid</p>"
          }
        ]
      }
    },
    "type": "post",
    "url": "/api/wechatuser/getopenid",
    "title": "第一步获取openid",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576500393\",\"data\":{\"user_id\":3,\"openid\":\"3234234fdfdasdf3454\"}}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Wechatuser.php",
    "groupTitle": "微信用户"
  },
  {
    "group": "wechatuser",
    "name": "collection",
    "type": "post",
    "url": "/api/wechatuser/collection",
    "title": "添加收藏",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "user_id",
            "description": "<p>用户id 从微信添加用户获取</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "shop_id",
            "description": "<p>店铺id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "status",
            "description": "<p>状态可选 传1 为取消收藏 不传 status 收藏成功</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576548701\",\"data\":{\"status\":1}} 1 没有收藏 0 收藏成功",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Wechatuser.php",
    "groupTitle": "微信用户"
  },
  {
    "group": "wechatuser",
    "name": "create",
    "description": "<p>保存微信用户信息</p>",
    "type": "get",
    "url": "/api/wechatuser/create",
    "title": "第二步保存用户信息",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "user_id",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "nickName",
            "description": "<p>微信昵称</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "avatarUrl",
            "description": "<p>微信用户头像</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576386140\"}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Wechatuser.php",
    "groupTitle": "微信用户"
  },
  {
    "group": "wechatuser",
    "name": "demycomment",
    "type": "post",
    "url": "/api/wechatuser/deMyComment",
    "title": "删除我的评论",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "comment_id",
            "description": "<p>我的评论列表的 comment_id</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576549998\",\"data\":null}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Wechatuser.php",
    "groupTitle": "微信用户"
  },
  {
    "group": "wechatuser",
    "name": "mycollection",
    "type": "post",
    "url": "/api/wechatuser/mycollection",
    "title": "我收藏的店铺",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "user_id",
            "description": "<p>用户id 从微信添加用户获取</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "page",
            "description": "<p>当前页数</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "pagenum",
            "description": "<p>一页多少条</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\"}}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Wechatuser.php",
    "groupTitle": "微信用户"
  },
  {
    "group": "wechatuser",
    "name": "mycomment",
    "type": "post",
    "url": "/api/wechatuser/myComment",
    "title": "我的评论",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "user_id",
            "description": "<p>用户id 从微信添加用户获取</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "page",
            "description": "<p>当前页数</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "pagenum",
            "description": "<p>一页多少条</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576549702\",\"data\":[{\"shop_name\":\"测试\",\"shop_id\":1,\"commnet_id\":1,\"content\":\"dfdfd\",\"comment_img\":\"dfdfd\",\"star\":3,\"addtime\":\"2019-12-12 16:10:40\"},{\"shop_name\":\"测试33\",\"shop_id\":2,\"commnet_id\":3,\"content\":\"3243234dfdf\",\"comment_img\":\"3243234dfdf\",\"star\":3,\"addtime\":\"2019-12-17 00:00:00\"}]}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Wechatuser.php",
    "groupTitle": "微信用户"
  },
  {
    "group": "wechatuser",
    "name": "upload",
    "type": "file",
    "url": "/api/wechatuser/upload",
    "title": "上传接口",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "file_name",
            "description": "<p>上传文件名</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\"code\":1,\"msg\":\"返回成功\",\"time\":\"1576386140\",\"data\":{\"file_name\":\"upload/22d.jpg\"}}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "application/api/controller/Wechatuser.php",
    "groupTitle": "微信用户"
  }
] });
